package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ChatroomBase{
	boolean[] modified=new boolean[3];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ChatroomBase(){}
	public ChatroomBase(java.lang.Long chatroomId,java.lang.String title,java.util.Date lastActive){
		setChatroomId(chatroomId);
		setTitle(title);
		setLastActive(lastActive);
	}
	public void setChatroomId(java.lang.Long chatroomId){
		if(chatroomId!=null) {
			set("chatroomId",chatroomId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getChatroomId(){
		return (java.lang.Long)get("chatroomId");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[1] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setLastActive(java.util.Date lastActive){
		if(lastActive!=null) {
			set("lastActive",lastActive);
			this.modified[2] =true;
		}
	}
	public java.util.Date getLastActive(){
		return (java.util.Date)get("lastActive");
	}
}
